Skip to content

Conversation

sanjanam1998
Copy link

result = result / counts.sum()

# freq patching for DatetimeIndex, TimedeltaIndex
try:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any way to avoid this type of post-processing i.e. have the result.index already be constructed with the correct frequency? Usually this type of fix is indicative of some operation not fully working as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API/BUG: freq retention in value_counts

2 participants